import xadmin
from .models import CourseComments,SensitiveWord,UserScore,UserAnswerLog,Sign,SignUser


class UserSoreAdmin:
    list_display = ["user","paper","total"]


class UserAnswerLogAdmin:
    list_display = ["user","course","paper","answer","score"]


class CourseCommentAdmin:
    list_display = ["user","course","comments"]


class SensitiveWordAdmin:
    list_display = ["word","add_time"]


class SignAdmin:
    list_display = ["grade","sign_name","add_time"]


class SignUserAdmin:
    list_display = ["sign","students","create_time"]


xadmin.site.register(Sign,SignAdmin)
xadmin.site.register(SignUser,SignUserAdmin)
xadmin.site.register(CourseComments,CourseCommentAdmin)
xadmin.site.register(SensitiveWord,SensitiveWordAdmin)
xadmin.site.register(UserScore,UserSoreAdmin)
xadmin.site.register(UserAnswerLog,UserAnswerLogAdmin)